package com.xingyun.info_manager.service.impl;

import com.xingyun.info_manager.dao.PatientNetDao;
import com.xingyun.info_manager.entity.AdminUser;
import com.xingyun.info_manager.entity.ParasBean;
import com.xingyun.info_manager.entity.PatientInfo;
import com.xingyun.info_manager.service.IPatientNetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Classname PatientNetServiceImpl
 * @Description 网络渠道
 * @Date 2020/5/26 16:11
 * @Created by You
 */
@Service("patientNetService")
public class PatientNetServiceImpl implements IPatientNetService {

    @Autowired
    private PatientNetDao patientNetDao;

    @Override
    public List<PatientInfo> findAllPat(ParasBean parasBean) {
        return patientNetDao.findAllPat(parasBean);
    }

    @Override
    public int findCount(ParasBean parasBean) {
        return patientNetDao.findCount(parasBean);
    }

    @Override
    public int changeState(ParasBean parasBean) {
        return patientNetDao.changeState(parasBean);
    }

    @Override
    public PatientInfo findById(int id) {
        return patientNetDao.findById(id);
    }

    @Override
    public int addInfo(PatientInfo patientInfo) {
        return patientNetDao.addInfo(patientInfo);
    }

    @Override
    public int getInfoByPhone(String phone,int id) {
        return patientNetDao.getInfoByPhone(phone,id);
    }

    @Override
    public int updateInfo(PatientInfo patientInfo) {
        return patientNetDao.updateInfo(patientInfo);
    }

    @Override
    public int chgIsCome(ParasBean parasBean) {
        return patientNetDao.chgIsCome(parasBean);
    }
}
